﻿using FluentNHibernate.Mapping;

namespace MPBlog.Model.FluentNhibernateMap
{
    public class SoftwareUseStatisticsMap : ClassMap<SoftwareUseStatistics>
    {
        public SoftwareUseStatisticsMap()
        {
            Id(m => m.Id).GeneratedBy.Identity();

            Map(m => m.Mac);
            Map(m => m.ComputerName);
            Map(m => m.SoftwareName);
            Map(m => m.LastUseTime);

            Map(m => m.CreatedTime).Not.Nullable();
            Map(m => m.LogicalDelete).Default("0");
            
        }
    }
}
